/**
 * Created by 19222 on 2018/4/14.
 */
  import java.util.Scanner;
public class pp81 {
    //------------------------------------------
    //读取0-50内任意多整数，并计算每项输出项出现的次数，用范围外的值表明结束，输入完成后输出所有值及其次数
    //------------------------------------------
    public static void main(String[] args) {


        final int ZHENGSHU = 10000000;
        char current;
        int a = 0;
        int[] zs = new int[ZHENGSHU];

        Scanner scan = new Scanner(System.in);

            if(a<=50&&a>=0)

           {
           


           while (a>=0 && a <= 50 ) {
            System.out.println("Enter number(0 - 50 ，over 50 to exit) :");
            a = scan.nextInt();
            zs[a] += 1;
            if (a > 50 || a < 0)
                break;
        }
}
        else
           System.out.println("Wrong number");

       

        for (
                int b = 0;
                b < 51; b++)
            System.out.println(b + ":" + zs[b]);

    }
}
